<%--
  Created by IntelliJ IDEA.
  User: 劳寄修
  Date: 2021/5/31
  Time: 18:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>后台系统index</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
    <style>

        *{
            padding: 0px;
            margin: 0px;
        }

        ::-webkit-scrollbar {/* 隐藏滚动条 */
            width: 0px;
            height: 4px;
        }

    </style>

</head>
<body class="layui-bg-green">

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">次元仓后台</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                    设置
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">个人中心</a></dd>
                    <dd><a href="">帮助</a></dd>
                    <dd><a href="">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-notice"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">

                <!-- layui-nav-itemed 默认展开组件-->
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">数据可视化</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">用户信息</a></dd>
                        <dd><a href="javascript:;">商品信息</a></dd>
                    </dl>
                </li>


                <li class="layui-nav-item">
                    <a href="javascript:;">用户管理</a>
                    <dl class="layui-nav-child">
                        <dd><a
                                href="${pageContext.request.contextPath}/user/list"
                                target="main"
                        >用户管理</a></dd>
                        <dd><a href="javascript:;">违规用户</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">库存管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" target="main">商品添加</a></dd>
                        <dd><a href="javascript:;">商品管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">系统管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">上传管理</a></dd>
                        <dd><a href="javascript:;">评论管理</a></dd>
                        <dd><a href="javascript:;">视频管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a href="javascript:;">订单管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">编辑订单</a></dd>
                        <dd><a href="javascript:;">查询订单</a></dd>
                        <dd><a href="javascript:;">购买方案</a></dd>

                    </dl>

                </li>


                <li class="layui-nav-item">
                    <a href="javascript:;">店铺管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">店铺排行</a></dd>
                        <dd><a href="javascript:;">入住店铺</a></dd>
                        <dd><a href="javascript:;">店铺装修</a></dd>
                    </dl>

                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 2px;">
            <iframe name="main" frameborder="no" border="0"
                    src="${pageContext.request.contextPath}/user/addUser"
                    width="100%"
                    height="100%"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        底部固定区域
    </div>
</div>

<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
            ,menuRight: function(){
                layer.open({
                    type: 1
                    ,content: '<div style="padding: 15px;">处理右侧面板的操作</div>'
                    ,area: ['260px', '100%']
                    ,offset: 'rt' //右上角
                    ,anim: 5
                    ,shadeClose: true
                });
            }
        });

    });

</script>


</body>
</html>
